const { parallel, src, dest } = require('gulp');
const cleanCss = require('gulp-clean-css');
const imagemin = require('gulp-imagemin');
const babel = require('gulp-babel');
const uglify = require('gulp-uglify');
const sass = require('gulp-sass');
const rename = require('gulp-rename');
function test(cb) {
    console.log(babel);
    cb();
}
exports.test = test;
exports.cleanCss = function () {
    return src('./lib/*.css')
        .pipe(cleanCss())
        .pipe(dest('./output'));
};
exports.imagemin = function () {
    return src('./image/**/*.*')
        .pipe(imagemin())
        .pipe(dest('./output/min_img'));
};
exports.transJs = function () {
    return src('./lib/my*.js')
        .pipe(babel())
        .pipe(uglify())
        .pipe(dest('./output'));
};
exports.sass = function () {
    return src('./Sass/**/*.scss')
        .pipe(sass())
        .pipe(cleanCss())
        .pipe(dest('./output'));
};
exports.streamTest = function () {
    return src('lib/myUtil.js')
        .pipe(babel())
        .pipe(src('lib/another.js'))
        .pipe(dest('output/'))
        .pipe(uglify())
        .pipe(rename({ extname: '.min.js' }))
        .pipe(dest('output/min/'));
};